package com.chen.common.security.annotation;

import com.chen.common.security.config.ResourceServerConfig;
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * 认证授权资源服务器注解
 * @author ~龙~
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@AutoConfigurationPackage
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({ ResourceServerConfig.class })
public @interface EnableSecurityResourceServer {

}